package grape.composite.rest.expressway.mapper;

import grape.composite.rest.expressway.form.ExpresswayListForm;
import grape.composite.service.expressway.po.Expressway;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.composite.rest.expressway.form.ExpresswayCreateForm;
import grape.composite.rest.expressway.form.ExpresswayUpdateForm;
import grape.composite.rest.expressway.form.ExpresswayListPageForm;
import grape.composite.rest.expressway.vo.ExpresswayVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 高速公路线路表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-10
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ExpresswayWebMapper extends WebMapper<ExpresswayVo, Expressway> {

    Expressway formToPo(ExpresswayCreateForm f);
    Expressway formToPo(ExpresswayUpdateForm f);
    Expressway formToPo(ExpresswayListPageForm f);
    Expressway formToPo(ExpresswayListForm f);
}
